<div class="section">
	<div class="block">
		<?php
		$form = $this->beginWidget('GxActiveForm', array(
			'action' => Yii::app()->createUrl($this->route),
			'method' => 'get',
		));
		?>
		<table class="table">
			<tr>
				<th scope="row" class="align-right">Team leader</th>
				<td>
					<?php
					$this->widget('common.widgets.PsSelect2.PsSelect2', array(
						'name' => 'leader_user_id',
						'data' => Agency::getAgencyUsersListData(),
						'htmlOptions' => array(
							'prompt' => '',
							'multiple' => false,
							'style' => 'width:300px;',
							'data-placeholder' => 'Select user'
						)
					));
					?>
				</td>
			</tr>
			<tr>
				<th scope="row" class="align-right">From Date</th>
				<td>
					<?php
					$form->widget('PsJuiDatePicker', array(
						'name' => 'from_date',
						'value' => $from_date,
						'options' => array(
							'showButtonPanel' => false,
							'changeMonth' => true,
							'changeYear' => true,
							'dateFormat' => 'dd-mm-yy',
						),
					));
					?>
				</td>
				<th scope="row" class="align-right">To Date</th>
				<td>
					<?php
					$form->widget('PsJuiDatePicker', array(
						'name' => 'to_date',
						'value' => $to_date,
						'options' => array(
							'showButtonPanel' => false,
							'changeMonth' => true,
							'changeYear' => true,
							'dateFormat' => 'dd-mm-yy',
						),
					));
					?>
				</td>
			</tr>
			<tr>
				<th scope="row" class="align-left" colspan="2"><?php echo CHtml::checkBox('show_deleted', $show_deleted ? true : false); ?> Show Deleted Records</th>
			</tr>
		</table>
		<div class="row buttons">
			<?php echo GxHtml::submitButton(Yii::t('app', 'Search'), array('class' => 'green', 'name' => 'action')); ?>
			<?php echo GxHtml::submitButton(Yii::t('app', 'Clear Filters'), array('class' => '', 'name' => 'action')); ?>
		</div>
		<?php $this->endWidget(); ?>
	</div>
</div><!-- search-form -->
